package com.jianqiao.delivery.midtrans.service;

import com.midtrans.httpclient.error.MidtransError;

import java.math.BigDecimal;
import java.util.Map;

/**
 * author: cyx
 * create: 2024/8/7 11:22
 **/
public interface MidtransPayService {

    Map<String, String> create(String idRand , BigDecimal amount) throws MidtransError;

    String refund(String orderId);

    void callBack(String orderId);

    void errorCallback();

    void unfinishCallback();
}
